import axios from '@/config/httpConfig'
import qs from 'qs'

// 获取APP下载页面配置
export function getDownloadList(data) {
    return axios.post('/admin/downloadLink/getDownloadLinkPage', data)
}

// 添加APP下载页面配置
export function addDownload(data) {
    return axios.post('/admin/downloadLink/addDownloadLink', data)
}

// 修改APP下载页面配置
export function updateDownload(data) {
    return axios.post('/admin/downloadLink/updateDownloadLink', data)
}

// 删除APP下载页面配置
export function deleteDownload(data) {
    return axios.post(`/admin/downloadLink/deleteDownloadLink/${data.id}`)
}

// APP下载页面配置详情
export function getDownloadDetail(data) {
    return axios.post(`/admin/downloadLink/getDownloadLink/${data.id}`)
}
